square builder (used jquery for easier dom manipulation) - BenP