Invoke js-beautify to auto indent js, reference to https://gist.github.com/nisaacson/6939960