moving script tags so they load appropriately
moving script tag
removing console.log
adding jqm map to avoid error