Add semicolons to JS

It would be desirable for developers to not have to add semicolons into copied code after pressing the copy button in the JS docs.