Modified javascript loading in doclet, the array returned from checkParams modified to an object (better to read)