added karma unit testing using requre js