Some javascript components of photos