switched from deprecated jQuery method to js