bringing small javascript change in from spree_bitpay