added method file to JS lib