Cleans up JS