create logging elements instead of embedding markup
move logging to its own object

remove dependencies on a particular jquery element
create a global log object.