updated to use min js