Fixes AMD issues as well as some JsLint cleanup in the ResizeHandle; rem...

...oved use of dojo global, fixes #18214

This fixes several JsLint complaints in the code, + fixes the use of the dojo global in two places, which was wrong.