completes js actions on ready