moved map js to its own file and implemented jquery's document ready feature