utilize the resources plugin if installed, otherwise fall back when injecting necessary javascript/css