Update to Version 1.8

Use localStorage instead of cookie
Code refactoring