cleanup some js