Flexible logging and profiling library for JavaScript