How To Input String In Javascript Method