few changes in js