fixed ifEs.js to accept ifElse and elses