Properly namespace js attributes
Fixed few conversion bugs for nested arrays and objects