ATNormalizeSkin visitor: should keep js outside of the class definition

This version of ATNormalizeSkin works fine, but the code seems over complicated due to the AST <-> JS object transformations.
Any advice to improve it ?