slowly removing the need for jquery