Use pure JS

Done right. Thanks to Ilya D.