Added interval wait to check API every 10 mins

- Fixes potential bug with not setting originalUrl
Proper indentation

- Used jsbeautifier.org to copy pasta fixed indentation to and from