DDBNEXT-409: fix JavaScript style and remove console.log