So, you're still creating a new array here every time you call getPath(). Instead of declaring MONTH in here, you should declare it in the global scope. You can also just declare all the month values inline, like:
var MONTHS = ["Jan", "Feb", ... ]