clean up some js