adding simple statistics js