Moved js some code into on 'render' for AppPropertyGrid

Trying to fix a spurious race-condition bug...