Updated the js example