fixed jshint errors and other tests
clean up for old directive files