moved scripts declarations to head in _Layout