added thank you redirect via javascript