Javascript assignment that does not really work.