Removing Javascript calls to .trim()
Fixed nam of site host in config files