fixing bug of console crashing on sites without jquery