Completed jQuery for progress bar