Moved map Javascript to external file