JavaScript: add Event (Cable)