re-added Safari 7 fixes
Another fix for Safari 7: Needed if starting with a fresh RES user and no previous settings
Add radix to parseInt
Use .data() instead of .attr('data-')

Use .data() instead of .attr('data-')

Use .data() instead of .attr('data-')