refactoring code from bootstrap and adding google analytics js