cleaning up JS