Upgrade to latest jQuery.
Make js code more readible by splitting up html code over different lines.
Simplify query in get_object method.