Added deferred api implementation
modified jshint props