Fixing a hard coded line of javascript