Added a javascript example