JS SDK 1.0 doc and sample