added support for multiple input modules in require task
fixed async bug in karma task. reverted to use tried and tested method for running karma