Refs #3490 Add `getUserId` Javascript helper + test