update js client to support sessionDestroy

Requested by @shane-tomlinson in #254