fixed up some javascript files