[javascript] Remove anonymous function assignment example. ref #215
[javascript] Add semicolons. Closes #214.