Split out growing JavaScript to its own file