Add jshint task
Split out parsing and conversion functions
Make jshint happy