I think we can actually revert this piece and use require_tree. I reckon we solved the code-order problem by running the map js after the dom load and React rendering.