Refactoring JS komponentu a hard-wired modulu