updates to JavaScript