Mosayc javascript api