update bower.json
move templates to external file
add main.js
refactor to use requirejs