Added the redirect via Javascript

May come back to this and use PHP and Session Variables instead.