replace w and h vars in Align js