including '$q' as a dependency so the minify does not break the ap. Also fixing resize on analytics map.