updating to help with timing issues – js resources not yet ready and Promise was firing