relearn js function