Fixing some bug that happened when we refactored the JS Wrapper.
Fixing some bug that happened when we refactored the JS Wrapper.

addyosmani/realtime-playground,googlearchive/realtime-playground,addyosmani/realtime-playground,googlearchive/realtime-playground,goodow/realtime-web-playground,goodow/realtime-web-playground,googlearchive/realtime-playground,addyosmani/realtime-playground