get execute and include js hook when necessary