Run JavaScripts headless on travis