Minor fixes and put album JS in separate file