Power-ups is a project mainly written in JavaScript, it's free.
Arduino as a input for a web game
MIT License