Fixed gem dependencies and javascript include for application layout