Cleaned up js file