refer crashreport and separates js file