use module pattern in widget.js
remove the function name in api.js
add some function to destroy scratch in api.js
add new event - mousedragout
enable the mousedrop