Detect the indentation of code - Node.js and browser module