JS APIs Ex1 bug fix

on drag leave the panda didn't close the lid