Added time_in_ms as rough timestamp in case saving runs doesn't work for data organization
Cleaned up code using guidelines from JSLint