Rails redirect_to with javascript