Initial commit of javascript example