jsbeautify and autoclose fix