front-end: removed duplicate function

Removed the function defined twice, on line 74 and line 231.

This change fixed node-inspector in the Safari browser.