How To Create String Array In Javascript Functions