Wacky functions

javascript modified
Wacky functions modified

javascript file modified