detab
more logging. refs #6
factor out javascript from xslt into separate file. fixes #10