modular pattern implemented & overcame crossdomain issues.