Fixed syntax errors in deadlines.js