Error Form Submit Javascript Array Map