adding checkinsurances.js