move analytics to requirejs module