how to check if div is empty javascript