Artisan JS is an Open Source JavaScript Canvas Library that aims to make in-browser drawing very easy.
It specifically targets Canvas and supports for layered data, graphics can be layered and flattened when rendered, but the data remains. This means the data can continue to be manipulated after it is rendered.