quick fix for javascript animations

Fixed the improper initialization of javascript functions because we are using Turbolinks