commented console.log() used for debug
added params for allowDiagonal, dontCrossCorners, allowDiagonal is now false by default
updated javascript compiled files