Search posts, tags, users, and pages
Chandan Naskar
This is perfect article for understanding JS variables scope