jslint: added semicolon; less "var" in scalePreview() method