refactored js dependencies