fixed JavaScript gon issue