controller meshes with js