Added a bundles.ResetAll() at the beginning of BundleConfig which seems to fix the javascript errors that would occur during the first debug session