Switch tests and grunt to plain-JS.