relaxing dependency on jQuery