Remove some clutter from js file