update the understand of javascript pop