changing to js from jsx