js functionality update
.
another try at js func
.
.
.
.
.