Javascript profiling framework