fixed external dependencies management in js with webpack