Refactoring

- Refactoring paths for javascript files
- Router lib for browser history