updated examples to use js with docs