Inject a definition for $ at the top of each file during build.

This makes the draw tool useful for applications where the $ global
doesn't refer to jQuery and refers to something else (like Prototype).