fix code indention and some JSLint error

fix code indention and some JSLint error