Update index.js

added logic to try and store otRequest push into localStorage