Fix typo in vappiano.js
Close response only in redirector mode and refactor ip