Seperated checktime for use in other scripts

Checktime is a recursive method that waits until the video is fully
loaded before executing the callback function.
Preperations for setting time by URL