Create diagnostic.js