removed some inline JS
basic logging