Switched localhost:8080 to the correct IP
Added RESTful API to JS