Fixed timing of the javascript initial states