Emulate apache server virtual includes in javascript.