stricter datetime parameter processing
cleanup js, remove console logs