changed default dates in js to 30 days before, removed legacy code