Used jsbeautify to resolve #8