Misuse of jquery object - use DOM object instead