Add semicolons to JS code sample

Change JS code sample to include semicolons