Issue #5894: adds JsDocs to widget reader

adds JsDocs to widget reader