Refactored createEditDelLinks() for jQuery.
Moved all code so it is within the pageinit function for #addalbum page.