use direct js methods