added isDebug function, gruntfile refactored