Webapp using ratchet, angularjs and snap.js