Experiment with javascript, java Time limit checking

Based on the time limit for each language in this post

In this question Contest Page | CodeChef

Same code one is javascript with node.js (Solution: 42923524 | CodeChef) and another is java (Solution: 42923549 | CodeChef), SO both be AC within 2X time: 2 * 3.0475 Time limit. However, java accepted, javascript TLE. Why