changing markup and adjusting css & jQuery