Added loan model, added Ajax function to Create inventory form and Create Element Form.