loading bar now reads from real time energy plus simulation. javscript passes random variable number to php/ruby