wrapped the main javascript in an jQuery ready event, to prevent load errors when browsing with the back button.
Merge pull request #9 from DavidVujic/master

Bug fix: viewmodel loading problems