Fix [bug951709] - Changed HOSTNAME to APP_HOSTNAME in env and related files
[bug987131] - fixed JS Linting failures