Allow javascript tests ro run on Travis

#1294