set indent spaces to 2 , and activate tern mode for js2