modified lib js