cleaned up js file