Changed .delegate() to .on() event in src