Cleaning up some js