Change react (jsx) and javascript to follow require("file")