Success having rails data pass into javascript