fix tie js