Added Javascript to redirect Search Results to their Proper Pages