Drag and drop for move

Implemented drag and drop for moving objects.
Moved lib out of js to make search easier.