update rails 4 template with initializers and javascript stuff