Still more bughunting in JS
starting to really hate the language. a real type system would be nice.
actual exceptions too.. 

changed from using human readable date strings, to UNIX time values.