JavaScript: Remove unnecessary helper functions and add a Makefile for jslint

This originated from BetterBuses-Web. GitHub won't let me submit a PR across the two repos because it doesn't realize that BetterBuses-Web is a fork of BetterBuses.