adjustments suggested by JsHint.com