added js methods