Updating the app so it leverages express for outputting json instead of parsing data through php.