Boolean gods

qntm.org/files/gods/gods.html
My attempt was to use brute force method(for unknown reason if i remove the parens and the !! the script failed)
To my surprise,it worked on the first time
Then when i checked i found out da and ja are reversed.....
werid problem but ok