Convert Array Into Hashmap Javascript Compiler With Html