changed to width, fixed javascript error