Call user defined function in jquery

@chrisofarabia: Yeah, Corrected the typo, just to know is this better way programming wise.:slight_smile:
Anyhow the code is working.