Allow javascript tests to run on Travis

#1294