Add some unit tests with QUnit
Some minor improvements in the unit tests
Small fix to make it work on an actual device (it does not seem to accept reading files from input type=file)
Add a slightly more generic way to read title and data files on a real device