jQuery to javascript