cleaned up some js