on vs delegate exercise JS updated for variables