Is possible add a control grid javascript in form master - detail

Hi, i need to Create a app for a invoice, so i must create a form a master detail in SC.

I think create my form master a app type form SINGLE RECORD and my detail a CONTROL GRID JAVASCRIPT or (JQUERY)
The idea of work with this model is give faster to process for salesman when add products to invoice.

so I could manually have control on GRID when add, edit o delete records IN MEMORY. (so i do not have reload the detail form server)

My question is if is possible mix in SC a Form master with a CONTROL GRID JAVASCRIPT and i can create scripts into SC for manipulate this control.

Or some Idea how could be this process? The idea is work in memory with the details.