Updating for JSAPI Class 2