Merge pull request #6 from DavidVujic/master

Added unit tests
moved the inline JavaScript for the view model and the url vars function to external files.