do it when jquery is available