use jquery so that it works in most browsers