edited angular app for down vote implementation