JavaScript Snippets -- fixed layout issue