added QUnit unit tests, moved javascript code to separate files
Merge remote-tracking branch 'upstream/master'
updated after merging with the original repository
Merge pull request #6 from DavidVujic/master

Added unit tests