Stats an Javascript, not finished yet