integrate requirejs to karma, change all files to use requirejs