js scope question, pretty simple