cleaning up js