Update nggGalleryview.php

addition of file exist checks for local js/css files based on same check used for template file.
Would love to have a global check for javascript loading in footer or not but I'm not sure how to do that yet so I've set mine to load in the footer, as per best practices, not in the head.