use localStorage instead $.cookie
fix bug open/close content