Added strict mode to js functions, fixed wrong selector for var today.