Wacky conditionals modified

javascript modified