added changes on js