use strict, properly parenthesize, and refactor Forecast Spice.

This branch has some changes to the Forecast Spice, including `"use strict";`, proper parenthesization for blocks (rather than, e.g., `if (foo) bar`), and some fixes to make the code more readable and concise.