added first JS function