Added comments for base.js functions.