JSOM Update List Items

List items can be updated with the following javascript code;

CODE