karma: use phantomjs; travis: include javascript tests