Overlay class option

We were in need of an option to set a custom class to the overlay layer. These commits add an option in the JS to set a custom class, documents the new option in the readme and removes an unnecessary variable declaration.

(I also see that a lot of extra trailing whitespace has been removed, hope that's okay. Won't affect anything apart from making the diff a bit harder to read, sorry about that!)