Making layout use jQuery