minor changes in the js