ajax back and forth work onlyiff the js console is open