basic JS lib functions added