Create a general jsduck test task and use it for OOjs and OOjs UI

Bug: 57039
Change-Id: Ibd4cfe9fa669795653d47f9ded0be310e8445891