Fix incorrect variable scope in draggable example