Python Path Get Current Year Javascript Foreach Loop