went from jquery to js, cleaned up wrapper functions