stupid javascript tricks, perhaps? (take 2)