Using javascript to set width and height is stupid