update for pretty photo
update for js