Fix travis checking for javascript errors