cellauto.js is a library for creating cellular automata simulations in Javascript. The library is tiny and is pure Javascript, requiring no third party code to run in your browser.
See it run here on the project page
Some of the API ideas were inspired by the excellent project, terra
The project is open-source and licensed under MIT.