mucking around with javascript, yay :)