execute js callback, string param \' replacement fixed