Added jsapi-mock and unit tests for jsapiLoader