Changes to javascript.