improved gruntfile, some refactoring for better possible integration with code coverage systems and unit tests