Personal functions modified

javascript file modified