javascript code alignment