Made corrections suggested in pull request review, including fixing jslint errors and removing blank functions