Escape js

This is a fix for the issue of not escaping output strings in the results and groups divs. Hopes to address issue #19 and issue #20 .

Please note: this is my first time ever writing coffeescript, so on issues of style and correctness this should be looked over a couple times...