use javascript instead of jQuery