Requirejs plugin to load different resources based on some condition.