bugfixed js