javascript Werd Example

Unlike other languages (php, python, perl, c#) javascript runs purely in the context of the user. This means that you cannot "hide" the answers on the server side handler, making it fairly succeptable to exploitation. It may be possible to use randomized hidden variables mixed in with other random hidden elements to make it harder to guess, but the logic is still on the client side and therefore can be programmatically defeated. Below is an example of how werd would work with javascript (though using server side controls is highly recommended).
Werd JavaScript Example:
Werd Javascript Source