Test gon and javascript interaction