Fix javascript closure memory leak when openning select2