refactoring album.jsde and album_controller.js