Clean up

remove implicit global, rename file to swap underscore for hyphen, add a few semicolons for consistency and fix jsdoc