Refactoring for album view to be resolved
Used jquery to populate album view