Amazon Plugin:  fixed JS control checks; removed old test code

Wasn't checking for the existence of a control correctly and thus only
getting the first couple pages of results rather than all.