Minor Change to dragdrop.html

Removal of an unused array, commands
Update buttonEvents

Implement logic for creation of commands as follows:
- detect the items listed on the code editor*
- create each commands accordingly

*repeat has NO valid Command object