Added minor, untested error handling. Wrapped all of the plugin code into the code39 function, so the plugin can be used more than once per page load without breaking. Also added a canvas clear to white upon drawing.