update to the js, one little error