Prevent recording the trace for too long input
Cleanup frontend code and add test.html
Fix instanceof issue :)