- fix dependencies in require js
- use require js for fetching templates