reformats tasks to runner.<browser>

removes extra mock lib ref
changed karma config to js format
add a better test