JSOM Get current user groups

Current user groups can be retrieved with the following javascript code;

CODE