Updated file to coffeescript, few small changes for settimeout / context for events