Favicon (js) refactoring