Removed some cruft from the JS file