This simple javascript chess engine is a work in progress.
It doesn't support things like en passant or draw by repetition yet...and it only looks a couple moves deep, so don't judge it too harshly :) .