Added more code to JS

Added code to do post. Also, start the app.