Fixed example JS object code in README