Reformat code in examples
 Fix EA-43710
Fix EA-43299
Fix bug with running more than one js example