Fixed others javascript bugs