A Timer function based on jQuery to make a callback after a given time