Fixed variable name misspelling.
Fix JS code style.
Added configurability of admissible language at the contest level.