add router
fix various jshint errors
add make jshint and fix bug introduced while renaming