Fix Bridge.scala to send proper JSON objects to browser.