start to cleanup the script

see more in detail changes at https://test.wikipedia.org/wiki/MediaWiki:Gadget-afchelper.js/submissions.js