Add commands to execute javascript in the global scope or a specific plugin's scope. TODO: Relocate the dependencies