Changed to not nested for testing.
Started adding tests using qunit
Made space pause and resume
Tidied html
missing semicolon
Removed unnecessary comment.
Updated comment.