javascript understanding the weird parts 100 off