Press space to jump over the spikes. when you lose, just click the restart button. The game ends in about 1 minute, if you are able to complete it.
Credit to @robohuman2009 I just made this a little better by adding more spikes and changing the restart button.