basic js in place to tell time and inject html accordingly
translated day into word days rather than numbers
some refactoring and calrification in js.