Add method to generate requirejs conf for npm deps