Replace autoclose plugin by autpair