Remove js cruft from borrowed example