Removing AJSResource's dependency on scripthelper.