fixed JS for div layout
Merge js fix