put in windowWidth etc in place of 700 ...