Javascript logging framework