js example updated.