[PoC][WIP] Replace hardcoded js stuff with RequireJS

> __Note__: this code is not working (yet), it's just PoC to show idea how we can improve our assets management.