JavaScript binding for new mesh APIs