Updated JS tests to support jQuery 1.9.1