added simple javascript client for matrix API