move init.js to scripts folder, classes.js minor refactoring