Fixed serious js issue