JavaScript and jQuery completions