split main into model stuff and utils
make map requirejs module