localStorage for intGame works with angularJS