adding minified version
fixing stupid date range bug