I'm loading a script into the page with the .getScript() function. Some content is being loaded as well (some of which are images). I need to do some stuff with this content but it doesn't seem to exist. For instance I put a function in the file being loaded and then fire it in the callback of getScript and get something in the console that says the function doesn't exist. Also, when I try to go through the images, they're not attached to the DOM or something because they're don't have a method 'offset'.

for instance, bottom of the page being loaded:
<script type="text/javascript" charset="utf-8">
	$(document).ready(function() {
		$.getScript('/assets/file_list.js', function(data, textStatus) {
			// callbacks
			resizeInfoPanel( $('.file_list > li') );

	function resizeInfoPanel(image_collection) {
any help is appreciated.