Fixing compatability issues with JS client 0.9.1