working js alignment