DDBNEXT-1005: js code clean-up, avoided trailing whitespaces
DDBNEXT-1005: Avoid use of == and != in favor of === and !==
DDBNEXT-1005: js refactoring
DDBNEXT-1005: Refactoring Javascript code (clean up)
DDBNEXT-1005: breaking line for else statement reverted.
Merge branch 'DDBNEXT-1005' into develop

Conflicts:
	web-app/js/favorites.js