The oStat javascript library