Example require method to JS path
Wait is optional