+ fixed bug where file extensions couldn't be discovered automatically if the extension was longer than the filename given
+ added test file for testing that the DOM exists