Revert "Deleting nested object syntax to prepare for arrays."

This reverts commit de15e8b790a1b909227f860887254a3fbc2ef443.
Moving View related functions to View.js
tools.js -> fields.js, structure.js