Using javascript instead of jQuery