override console log to print a timestamp
add logging
add missing semicolon
more verbose error log message