JS to inject newly added task to the list