Added setupPage js func called from body onload to dynami