Moved log_new_gift from the client to the events.js