Added travis support to JavaScript build