Initial version of the purejs client