updated pageCounter()

the old method initExperimentVariables()

of counting page duration was inaccurate
so a new function pageCounter() has replaced it that accuratly counts
seconds, it also cuts any over head that initExperimentVariables()
doing calclations onbeforeload()
uppdated experiment