fix width/height ids in js