Now support jQuery > 9, added option closeOnEnter