Workaround to deal with an issue in node-webkit where the validate function fails on object literals


Detailed explanation of root problem in issue #2685.