javascript understanding the weird parts

1 2 3