added tests/refactored timeUpdate, added local jquery