[task3] - draft of AMD-like js files, minor grunt config tuning