Format JS code and update dependency list