refactored build system to grunt and karma