I was wondering if someone could tell me why the below code is not working. The first 2 on functions are working and then the last on function is not working and I am getting the error message "cannot call method of on of undefined."