Simple vanilla JS helpers