appended clickLoadApp to window to allow the server to insert code to call it