updated main.js and added spec for the isFemale() method