Updated js methods