added jsdoc
Util fn to addTrailingSlash
EPIJSLIBS-36 - allow overriding root for data api and test cases