[javascript] How to find the width of a div using vanilla JavaScript?