NXP-11507 fix bad closure in Html5 DnD Js Script