Renamed a function in the javascript code.