Updated webapp
#12 receive json data and pass it on to web app
Added callback for onMessage