Update library.js

Updated library.js - Added in a new method/function called clearCanvas(); It simply clears the whole canvas.