realigning js block