Update plain js