added the drag interaction;
javascript interactions moved to a separate file.