Added flycheck for js2-mode
Added code for wrapping region with curly braces