add breif javascript sample