Calculating solar position

I coded up all the Meeus calculations required for the ‘approximate’ calculations (good to a minute or better) for the Sun and Moon in Javascript for a couple of Microsoft desktop Gadgets I released back in the day, it was quite instructive.