added js for dynamic dates