Adding support for javascript set min and max widths, useful for percentage based sizes