added 2 more seconds to getDetails call to allow javascript to finish running before continuing