     console.log 'rendered'
   onTestsChanged()
 
-  rt = {
+  rt =
     "protocol": "websocket",
     "address": "ws://localhost:3569",
     "command": "python2 protocol-examples/python/runtime.py" # need to start manually!
-  }
 
-  id('runButton').onclick = () ->
+  runTests = () ->
     runner = new fbpspec.runner.Runner rt
     runner.connect (err) ->
       console.log 'connected', err

        runner.disconnect (err) ->
          console.log 'disconnected'

main()

fbpspec = require 'fbp-spec/src/index' if not fbpspec
widgets = fbpspec.ui.widgets

# DOM helpers
