2Pac Time implementation for Javascript