fixed folder bug in karma-main.js
adjusted regular expression for minute substring
removed redundant escaping from reg-exp