add jsbeautifier check to tests (and way to fix style issues), closes #24