fixed js and view for spree 1.3