Array Functions In Javascript With Html