fixed up some js