Added missing PHP tag.
Improved NoJS redirect.