cleaning up js file now that bug is fixed