How to get Parent ID and context in create.js

Hi all

I'm working on a piece of customisation in the Cases module and need to access Related Parent Fields to set some defaults on the Cases form. Is there any way I can get the Parent ID and its Module name from within the create.js file and its initialise function.

I only want this logic to run when a Case is created via the Accounts module > Cases sub panel and not from the Cases module directly.

Regards

Sone