make export object the same with common and amd methods

i noticed the other methods actually export a module with html_beautify as the function, so this makes it compatible.

sorry for missing this out earlier...