cleanups in LongSpec: jshint, formatting, refac