Update entities.js - Click event