Update displayed javascript in shapes