avoid displaying javascript redirect in consoles