Fixed the getDayOfYear function to start at 1 instead of 0.
Fixed get week of year function. It was broken before with a Document write call and outputted a double instead of integer.
Merge pull request #88 from jholland-usgs/master

Fixed getDayOfYear and getWeekOfYear behavior