updated core js to handle different way to show progress animation