Update coins.js

Update for event listener.