Two Pointer Array Problems In Javascript How To Make The Page