Refactored the code

- templates in a separated folder
- JS files helpers, config (for data) and app