tweaking example layout and javascript