Everything else that we do in a Johnny-Five project, besides the header, goes inside this event handler. This handler, as shown here, means our board is ready to read and write to GPIO pins, and any code run outside this event handler that manipulates GPIO is not guaranteed to work and may cause strange behavior:
board.on("ready", function() {
// Everything else goes in here!
});