added more functions to jquery extension