use karma instead of mocha
add phantom