move related vars into setup function
add image alignment
bring config and setup in for maps
requirejs demos