Runtime dead code elimination for JavaScript