Readability & size improvements for JS constructor

One line per asset instead of normal 3; 50-70% fewer bytes per asset declaration.