new js structure.