I have 2 separate javascript files
#1.js
String.prototype.format = ....
String.prototype.capitalize = ....
#2.js
//................
var text = "some text{0}".format(var1)
//................
How do I make string#format
and string#capitalize
available in the second file?