Remove var currentTime.. inside JS code