Help refactor script into app.js


Currently I have this script in my index.html inside the head tabs. I should move this to app.js, right? Either way, can you help me? How do I modify the script to fit in the angular.module app.js?

      function initialize() {
          var mapOptions = {
              zoom: 14,
              center: new google.maps.LatLng(59.3332346,18.0280576)

          var map = new google.maps.Map(document.getElementById('map-canvas'),

      function loadScript() {
          var script = document.createElement('script');
          script.type = 'text/javascript';
          script.src = '' +

      window.onload = loadScript;