This change only ads config.SERVER_PORT so pdf generator works with non-standart port. It has nothing to do with client side script (or so I hope)