the extra parenth around screenlock arent needed, the === false isnt either
  
    if (screenLock && !returnToCamera)

if you could change the similiar clause in `screenWakeLock` to be consistent that would be great, thanks, I should have really nitted on this last time