Wacky functions

javascript file modified