fixed js errors in details view - refractored code that assigns Fabrik.blocks js key to form model