Made performance tweaks to move generation.
Made performance tweaks to move generation.

Added array length caching and optimized loop exit points in all
performance critical areas of code.  The result was a 12% improvement in
move generation speed.

r9k/chess.js,jeffthemaximum/chess.js,akshayverma2804/chess.js,linrock/chess.js,Assios/chess.js,ornicar/chess.js,mattyhead/chess.js,jhlywa/chess.js,ornicar/chess.js