How To Take Input Array In Javascript