api.js - simple code refactor Fixed a few jslint warnings
api.js - simple code refactor
Fixed a few jslint warnings

richardgalka/beer_update_wpg,richardgalka/beer_update_wpg,richardgalka/beer_update_wpg