add js to footer for date