Wacky conditionals modified

javascript file modified