Reduced Duplicated HTTP requests (Web/FB)

Altered javascript code to only make the http request when the mainpage
loads, and then to use the localstorage to render the data.