refactor json and watch in grunt