Trying to get this work with native js