JS: always generate hidden value input for empty nodes (parent nodes) in elements insertion, refs #17