You can also test this using the developer console...
# suitecommerce
s
You can also test this using the developer console in your browser. Adapt your code so it works in that context and then see if you can add the child view