JS doesn't have val, it has var. Whoops.