Opening as a reminder to myself, maybe look into moving the snippet to application.js or include it conditionally