mediawiki.page.ajax.watch: Clean up and simplify code

Change-Id: Ie66d08b84a39ad260866de6e0ff821e356133ad0
Merge "mediawiki.page.ajax.watch: Clean up and simplify code"