This really is more an answer than the usual question.
In Wordpress when adding ThickBox gallery to custom page / media-tab one might see 2 pinky pictures within the list, as with screenshot:
Things to notice is you dont make use of the following script by hand
When calling get_media_products($publish_id, $errors = null) than the JS is going to be added automatically
Hope it will help