Turns the parsing function into a jquery function