Updated the js example.