Fix invalid and infinite redirect for unsupported browsers

Conflicts:

	program/js/app.js