correct js file dependencies