Personal functions modified

javascript modified