Stop unexpected global

Define `dimensions` var so it is not defined globally. Remove some
trailing whitespace.
Add new minified build