Personal functions

javascript modified