Fixed some wrong javascript