Added ternary expression.

Added ternary expression to evaluate whether or not javascript is
enabled or disabled, and stores the result in a variable.