added js helpers