improved ajax getForm method, fixed bug in assets creation