fix anchor config in js