replace height, width, and scrollTop jquery methods with native js