Fix replace of data-main tag when using require,js
Merge pull request #40 from dewang/master

Fix replacing data-main when using require.js