browser compability

I wanted to play with in Browser tests.

Additional to this I had a util.js which contained print and put functions that wrote into a div.

Seems to work :)

Some parts of my changes might be a little messy, especialy how I treatet the Http tool thing.

What do you think?