Create time.js

Seperated module for time telling. If this is to be used, the time function should be removed from the main file.