Reduce precision of jQuery workaround