Changed function localJSON

input:
*pth :: string > Path to localStorage
*val :: string or int > Value (accepts +1, -1, 1)