fixed .val(values)

loop deleting existing ranges now starts deletion from the last range, which is fixing cases when amount of new ranges is shorter than amount of existing ranges.
Merge pull request #36 from meathor/patch-1

fixed .val(values)