split lib and test for jshint and watch