Can't a 100% width rule be applied via css and overwritten in js only if necessary?