Update loggy.js

Moved the class into its own object.