reorganizing js dependencies