Move calendar navigation script to separate js file