couldn't you do the same thing with javascript?