Make src fully compatible with jshint and updated the version