Reorder switch statement so touchmove is at the top (theoretically improving performance for the touchmove callback)
Add jslint to lint target in makefile
Add prevX/prevY and pass "directionLast" and "lengthLast" to touchmove callback