fixed content width
one global variable
renamed variables to be more JS-ey