Treat your $PATH like a JavaScript Array