fix autoclose to work with jquery 1.9 and moment js