Converting isocket login project into nodejs/backbone