REDO the javascript table exercise

1. Does not create the tr tags in js, rather made the template for the
same in html file and cloned those template and used it in js.