add js version
WAY BETTER NOW