added app js with cloud functions
call the cloud functino to get promote status counts