set default location

change form working in php to html5
setting and getting with localStorage