Satisfy JSHint rules
Frame no longer a global! De-anonymise MM event handlers

Also more JSHinting