data.js domcontentloaded function