Generates JS code with require statements from given paths.