Make 'scriptMenuItems' a plain object.
'console.log' --> 'log'
Adding back 'main_hook' message, as it is useful for troubleshooting.
minor formatting tweaks