remove parseInt when reading offsetWidth