Makes JavaScript create table and plays with arrays