Moving our fix for the broken Spree function into our own JS