modify javascript to JavaScript