finally figured out why my event listeners were failing -- removed turbolinks. Also simplified the script to attach event listeners to navigation links