getCurrentTime - added to javascirpt interface