PuzzleScript
Open Source HTML5 Puzzle Game Engine
Try it out at https://www.puzzlescript.net.
If you're interested in recompiling/modifing/hacking the engine, there is development setup info here. If you're just interested in learning how to use the engine/make games in it, the documentation is here.