Updated js-sdk to fix null error