new update

JS function included in index