javascript timestamp generation in simulatedevice script fixed