add jQuery API sample, add comments to JS API sample