Make photoset.js use ternary operator for readability.