Tweaked entity_example.js