move stripe js logic from coffee to js