updated to jsapi v3.8 - resolves #10