Update Application.js

Fix issue when application uses template, waiting for route initialization before starting History mechanism.
Merge pull request #1 from Shwartz/patch-1

Update Application.js