Changed design, calculate all basica stats with js