Move drag 'n' drop into "global" document ready function.

Also reformat deprecated legacy functions.

References #189
Minor reformatting of drag 'n' drop function.

References #189