Extracted main.js
Travis attempt #1