Execute JS earlier