Completed client-side code for publishing build