Fix regex for "insertAfterJs" hook.