Make loader consider react files as scripts