add js core [get elem function]