cleaning up js.