Example of picking fields is in JavaScript