BOTS is a project mainly written in JavaScript, it's free.
simple BOTS in JavaScript
The source code of the repository here is provided "AS IS" to anyone under the LGPLv3 licence. (GNU LESSER GENERAL PUBLIC LICENSE, version 3, 29 June 2007) http://www.gnu.org/licenses/lgpl-3.0.txt