Changed "bind" to "on"

Because "bind" is deprecated in jquery, I changed the method to "on". Surprisingly it was as easy as changing the name of the function.