Add vars to javascript, and work around xmlhttprequest behaviour for same URL (add ignored POST parameter)