Fix deadline picker on a number of pages

Fix the JS that configures the datetime picker. Closes #70