Update js file with new name and bug fixes.