F javascript mistake