General JS lib. Issue #3