add preconditions to Structure.js
Merge pull request #740 from maraoz/ref/preconditions/structure

mocha / karma / browser passed.