AI project based on Javascript and HTML5