JS scope review