Started work on the router and organized the Javascript