!!!
%html{:lang => "en"}
  %head
    %meta{:charset => "utf-8"}/
    %meta{:content => "width=device-width, initial-scale=1.0", :name => "viewport"}/
    %title= content_for?(:title) ? "OS4W | #{yield(:title)}" : "OS4W: Open Source for Women"
    = stylesheet_link_tag "application"
    = stylesheet_link_tag "https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/css/toastr.min.css"
    = javascript_include_tag "vendor/modernizr"
    = javascript_include_tag "application"
    = yield :css
    = yield :js
    = csrf_meta_tags
  %body
    %header
      = render "shared/navigation"
    = render "layouts/messages"
    .wrapper
      = yield
    = render 'shared/footer'

:javascript
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  ga('create', 'UA-67255015-1', 'auto');
  ga('send', 'pageview');

!!!
%html{:lang => "en"}
  %head
    %meta{:charset => "utf-8"}/
    %meta{:content => "width=device-width, initial-scale=1.0", :name => "viewport"}/
    %title= content_for?(:title) ? "OS4W | #{yield(:title)}" : "OS4W: Open Source for Women"
    = stylesheet_link_tag "application"
    = stylesheet_link_tag "https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/css/toastr.min.css"
    = javascript_include_tag "vendor/modernizr"
    = javascript_include_tag "application"
    = yield :css
    = yield :js
    = csrf_meta_tags
  %body
    %header
      = render "shared/navigation"
    = render "layouts/messages"
    .wrapper
      = yield
    = render 'shared/footer'

    :javascript
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

      ga('create', 'UA-67255015-1', 'auto');
      ga('send', 'pageview');

Move javascript to <body> scope
Move javascript to <body> scope

Previously, one of the two analytics embeds was rendering outside of
the closing </html> tag.

This fixes several failing specs that were giving the message:
"Ambiguous match, found 2 elements matching xpath '/html'"
