replace custom script with replacestream
use redirect to load index.html by default