Added time.js
Resolved errors, added leap year functions