fix photo scroll, remove unused js