WIP: Converting Jquery to raw Javascript