fixed : problems

Rethought the entire fix, now it's more elegant and fixed the problem reported by @numediaweb in the [Pull 30]https://github.com/drewhjava/brackets-beautify/pull/30)