Adds directive if file extension is .jsx