small changed to js