Edit mode window modal not working

Permalink
I'm fairly new to C5.
I have installed C5 and I have my default page working, and the edit bar at the top of the page seems to be ok. However, when I click the Edit button, the modal window that should popup does not. It takes me to a page without styling and I can't cancel or save any changes made (such as page title, description etc).

------------ Is there anything wrong with the head code below? ----------------

<head>
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width">
        <link rel="stylesheet" href="<?=$this->getThemePath()?>/css/normalize.css" type='text/css' />
        <link rel="stylesheet" href="<?=$this->getThemePath()?>/css/main.css" type='text/css' />
        <link href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700' rel='stylesheet' type='text/css'>
        <script src="js/vendor/modernizr-2.6.2.min.js"></script>
        <?php Loader::element('header_required'); ?>
    </head>


-------- And here is some code near the bottom of my page -----------

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
        <script>window.jQuery || document.write('<script src="js/vendor/jquery-1.9.0.min.js"><\/script>')</script>
        <script src="js/plugins.js"></script>
        <script src="js/main.js"></script>
        <!-- Google Analytics: change UA-XXXXX-X to be your site's ID. -->
        <script>
            var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']];
            (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
            g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
            s.parentNode.insertBefore(g,s)}(document,'script'));
        </script>
    <?php Loader::element('footer_required'); ?>
    </body>


THANK YOU

 
Ashkirk replied on at Permalink Reply
So after some messing around, it looks like my Google Analytics code near the bottom of my page was the problem. I removed it and now the modal window pops up normally. Probably a javascript error?

If i want to add the Google Analytics code back in, is there a way to do it and not mess up the editing modal windows?

Thanks