cleanup packages, add ff and phantomjs to karma tests