cleaned up js and created new js page