Fix issues in loading of monitoring specific js files.