Corrected Version Compatibility
appendChild replaced with appendItem