java script alert displays input value