The javascript files and image location/urls are not maintaining the port number. So to get to plogger on the server the url would be http://localhost:9999/plogger but the url for the javascript would be returned as http://localhost/ploggers/plog-admin/js/prototype.js
Are you only viewing your gallery on the localhost? Or can it be viewed via localhost AND the web? Also, are you experiencing this in the Admin section, the front-end gallery, or both?