javascript error cannot set properties of undefined setting display ')