needed to add limited check in jQuery