Moo-Mastermind is a project mainly written in JavaScript, it's free.
Little Mastermind based on Mootools
Little JS-Mastermind based on Mootools (version 1.0, as this is some years old now =))