Improve debug statements code analysis

- move it to its own file
- check for javascript ``console.log`` statements