#595: Fix jquery positioning

Resolves #595.