update JS pages