Fixed assets path
Refactored init.js