By embedding games on your website or application you are agreeing to the Construct.net Arcade Terms of Service.
I put together a very basic example of how to keep score, keep a high score (using LocalStorage), and keep track of number of 'lives' remaining.