making events emit after userscript runs

goes with https://github.com/tessel/runtime/pull/649
Also `Error` takes only one argument as a message