JS is confusing nowdays