js function to be called by programmer (edit)