added log4javascript, changed all console statements
forgot to script tag it, whoops