Moving map js to separate file.