Cosm Javascript Library