Added comments to frontdoor.js