Client javascript library for Magenta