replace some jquery stuff with direct DOM js;