Updating loader plugin with write method to support requireJS optimizer (http://requirejs.org/docs/optimization.html)
Adding some comments to the write function.
Merge pull request #2 from chadly/support-optimizer

Updating loader plugin to support requireJS optimizer