Gallery ads

don't fire cn.dart if dart is undefined (blocked by adblock). prevents gallery functionality from being broken by adblock