Changes to JavaScript