The problem is if we allow one person to use a small bit of Javascript, it's unfair not to allow others - and it's far safer and better to disallow javascript completely since allowing even the simple small bit of script you used can easily be abused (well, for those who know how anyway) to mess things up elsewhere at the board.