changed loadEngine to loadEngineMinimal and added the startEngine js function to lsPage's onEngineReady event and works fine now