Update JavaScript.tmLanguage

Adding in .onload and .removeEventListener() and .preventDefault()