changed to js