Fix upload photo js