Clean up WmsLoader.js

* Missing semicolons
* Multiply-defined vars
* Expand single-line objects