Improved the previous anti-js injection solution.