Updated for more recent Chrome, got rid of EventMachine dep.