JSOM Set Item Level Permission

Item level permissions can be set with the following javascript code;

CODE