Added alignpat.js