cleaning up some js