JS methods updated