Local storage support fixes, improvements, unit tests and jQuery version upgraded