Ruby Add To Array Javascript Appendchild Html