Move initialization out of bootstrap.js