Changed YouTube event handler to examine state.data instead of state