reorganize things to have controllers in dedicated file, and init in
main.js
move data module to separate file
inject resources with string, to support minification