Bundle: Allows TypeScript in JS bundles. (#1347)

For details, please visit #1347

Now lets hope I don't break everyone's life :smiley: 


@am11, Removing the replace up there will make it so this code this of no use. If we were to change from ```.Equals(".ts"...``` to ```.Equals(".js"...```, it would enable bundling multiple requirejs modules by naming them. The problem is that if we bundle multiple requirejs modules into one file, multiple unnamed ```define([], function(){})``` will exist within one javascript file and at that point, require will complain that it doesn't know how to implicitly name them.