Made unit tests

Made unit tests with jasmine
Slightly improved the structure (onload in html file / head and body
used properly)