Switch to script injection instead of indirect eval call