Added legend to yearly calendar and made main.js controller lint