Removed redundant nexusgallery lib while loop, Moved ajax to separate file, Updated to new lib variables.