pulled out non-nesting functions into backbone.mapScale mode