Fix replace of data-main tag when using require,js