Localize_model converts PHP arrays/objects to javascript handler.