I am using AJAX to load html files. Each html file has a vote up and vote down button.

The script that runs these two buttons are in a `document.ready` function in the main(index) html file.

When I directly insert the html into the main file, the `document.ready` function works.
But when I ajax load the html files, the contents of the `document.ready` function will not run.

What am I doing wrong?