Removed else statement from date.js and date-range.js files as they are not required.
Minor code optimisation changes according to suggestions in the PR.
Updated linz to get env variable in linz local so that it is accessible in any of the view templates.