redirect_to updated to redirect to js file