JavaScript Callback Functions and How to Use Them