This script actually has nothing to do with Wikimedia Commons, it just provides a link in the top toolbar to your common.js, much like Lourdes' page curation script. That's all.
To install the script, please add this line to your common.js file:
importScript( 'User:JJPMaster/wmcommons.js');