Reformatted public/javascripts/global_functions.