jshint refactoring to be able to use grunt to build the latest dist