started a only js version (client side)