Move PhotoViewModel to its own JS file.