Updated invert, fix alignment, sec lowered in 24h

Also updated JS file to pass check.