updated to JSAPI v3.7