Turbolinks was preventing javascript from loading in certain cases. Fixed with Jquery.Turbolinks gem. Added header to blog.