add copyright notices to months.js and punchcard.js

also fix JSHint 'global' declarations