updated to jsapi v3.8 - resolves #10
Merge pull request #11 from tomwayson/master

merged