Moving all JS inits into a separate file