Debugged confirm javascript