length was spelled wrong in my js file