Fixing js error lower down, line 10