fix monotonicTimeMillis and move to native.js