more idiomatic jquery