javascript understanding the weird parts by anthony alicea